package com.longcai.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.longcai.bean.PageHelper;
import com.longcai.entity.sys.SysRole;
import com.longcai.page.table.PageTableResponse;
import com.longcai.vo.SysRoleVo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ZJ
 * @since 2019-03-16
 */
public interface SysRoleService extends IService<SysRole> {

    List<SysRole> sysRoleList();

    List<SysRole> listByUserId(Long userId);

    PageTableResponse rolesList(SysRole sysRole, PageHelper pageHelper);

    void saveRole(SysRoleVo sysRoleVo);

    void deleteSysRole(Integer roldId);
}
